<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/component/commonTagLib.jsp"%>

<!DOCTYPE html>
<html>
<head>
	<title><spring:message code="message.lable.YiPingJiaDingDanDetail"/></title>
	<%@ include file="/WEB-INF/component/commonCSS.jsp"%>
    <!--[if lt IE 9]>
        <script src="lib/js/html5shiv.min.js"></script>
        <script src="lib/js/respond.min.js"></script>
    <![endif]-->
    <style type="text/css">
    @media(max-width:767px){
            .form-group-xs{
            margin-left:0px !important;
            }
        }
      .text-left{
      color:#949494;
      }
    </style>
</head>
<body class="skin-blue-light sidebar-mini fixed skin-blue-light-frame">
     <section class="content-header">
        <h1><spring:message code="message.lable.YiPingJiaDingDanDetail"/></h1>
        <ol class="breadcrumb">
        	<li><a href="${ctx}/home.jsp"><i class="fa fa-home"></i><spring:message code="message.lable.first"/></a></li>
            <li class="active"><a href="#"><spring:message code="message.lable.CaiGouManage"/></a></li>
            <li class="active"><a href="#"><spring:message code="message.lable.DingDanPinJia"/></a></li>
            <li class="active"><a href="#"><spring:message code="message.lable.YiPingJiaDingDan"/></a></li>
        </ol>
    </section>
 
 <section class="content" style="min-height:inherit;">
      <table class="infoBox">
         <tr>
           <td width="120px" class="infoBoxleft">
              <p style="color:#fff;font-size:20px;text-align:center;font-weight:600"><spring:message code="message.lable.DingDanXingXi"/></p>
           </td>
           <td>
              <form id="form" class="form-horizontal"  method="post">
                <input type="hidden" name=interflowId value="${info.interflowId}" /> 
                <div class="box-body" style="background:url('${ctx }/lib/img/infobg.png') no-repeat bottom right;">
                   <div class="form-group form-group-xs"  style="margin-top:5px;">
                      <label for="inputTextAlter1" class="col-sm-2 text-right"><spring:message code="message.listForm.DingDanBaoHao"/><spring:message code="message.yanZheng.maoHao"/></label>
	                  <div class="col-sm-3 text-left" >${info.interflowId}</div>
	                  <label for="inputTextAlter2" class="col-sm-2 text-right"><spring:message code="message.listForm.SuiHuoDanHao"/><spring:message code="message.yanZheng.maoHao"/></label>
	                  <div id="withOrderId" class="col-sm-3 text-left">${info.withOrderId}</div>                  
                   </div>
                   <div class="form-group form-group-xs" style="margin-top:-10px">
                      <label for="inputTextAlter1" class="col-sm-2 text-right"><spring:message code="message.model.peiSongQiYe"/><spring:message code="message.yanZheng.maoHao"/></label>
	                  <div id="delCompName" class="col-sm-3 text-left"></div>
	                  <label for="inputTextAlter2" class="col-sm-2 text-right"><spring:message code="message.listForm.PingFen"/><spring:message code="message.yanZheng.maoHao"/></label>
	                  <div id="gradeScore" class="col-sm-3 text-left">${info.gradeScore}</div>
                   </div>
                   <div class="form-group form-group-xs" style="margin-top:-10px">
                      <label for="inputTextAlter1" class="col-sm-2 text-right"><spring:message code="message.listForm.PingFenBeiZhu"/><spring:message code="message.yanZheng.maoHao"/></label>
	                 <div id="gradeRemark" class="col-sm-3 text-left">${info.gradeRemark}</div>
	                 <label for="inputTextAlter2" class="col-sm-2 text-right"><spring:message code="message.listForm.PingFenShiJian"/><spring:message code="message.yanZheng.maoHao"/></label>
	                 <div id="gradeDatetime" class="col-sm-3 text-left">${info.gradeDatetimeStr}</div>
                   </div>
                   <div class="form-group form-group-xs" style="margin-top:-10px">
                     <label for="inputTextAlter1" class="col-sm-2 text-right"><spring:message code="message.listForm.DingDanKaiShiShiJian"/><spring:message code="message.yanZheng.maoHao"/></label>
	                 <div id="orderBegTime" class="col-sm-3 text-left"></div>
	                 <label for="inputTextAlter2" class="col-sm-2 text-right"><spring:message code="message.listForm.DingDanQueRenShiJian"/><spring:message code="message.yanZheng.maoHao"/></label>
	                 <div id="submitDatetime" class="col-sm-3 text-left"></div>
                   </div>
                   <div class="form-group form-group-xs" style="margin-top:-10px;margin-bottom:-10px;">
                     <label for="inputTextAlter1" class="col-sm-2 text-right"><spring:message code="message.listForm.DingDanChuKuShiJian"/><spring:message code="message.yanZheng.maoHao"/></label>
	                 <div id="delDatetime" class="col-sm-3 text-left">${info.delDatetimeStr}</div>
	                 <label for="inputTextAlter2" class="col-sm-2 text-right"><spring:message code="message.listForm.DingDanDaoDaShiJian"/><spring:message code="message.yanZheng.maoHao"/></label>
	                 <div id="recpDatetime" class="col-sm-3 text-left">${info.recpDatetimeStr}</div>
                   </div>
                 </div>
              </form>
           </td>
         </tr>
      </table>
 

        <div class="box box-success">
            <div class="box-body">
                <form id="form">
                	<div class="input">
                		<div class="textalign1"><spring:message code="message.listForm.DingDanBaoHao"/><spring:message code="message.yanZheng.maoHao"/></div>
                    <div class="boxinput">
                        <input type="text" class="textinput" id="interflowId" name="interflowId" placeholder="<spring:message code="message.listForm.DingDanBaoHao"/>" />
                    </div>
                	<div class="textalign1"><spring:message code="message.model.peiSongQiYe"/><spring:message code="message.yanZheng.maoHao"/></div>
                    <div class="boxinput">
                        <input type="text" class="textinput" id="delCompName" name="delCompName" placeholder="<spring:message code="message.model.peiSongQiYe"/>" />
                    </div>
                	<div class="textalign1"><spring:message code="message.listForm.KaiShiRiQi"/><spring:message code="message.yanZheng.maoHao"/></div>
	                <div class="boxinput"> 
                       <table style="width:100%">
                                <tr>
                                    <td style="width:50%">
                                        <input id="startDate" name="startDate" type="text" class="textinput" placeholder="yyyy-MM-dd11" 
											data-date-fmt="yyyy-MM-dd" onFocus="WdatePicker({minDate:'#F{$dp.$D(\'endDate\')}'})" />
                                    </td>
                                    <td>&nbsp;-&nbsp;</td>
                                    <td style="width:50%">
                                        <input id="endDate" name="endDate" type="text" class="textinput"  placeholder="yyyy-MM-dd" 
                                        data-date-fmt="yyyy-MM-dd" onFocus="WdatePicker({minDate:'#F{$dp.$D(\'startDate\')}'})" />
                                    </td>
                                </tr>
                            </table>
                    </div>
                	
                	</div>
                	<div class="input" style="margin-top:3px">
                		<div class="textalign1"><spring:message code="message.listForm.SongDaRiQi"/><spring:message code="message.yanZheng.maoHao"/></div>
	                <div class="boxinput"> 
                       <table style="width:100%">
                                <tr>
                                    <td style="width:50%">
                                        <input id="recpStartDate" name="recpStartDate" type="text" class="textinput" placeholder="yyyy-MM-dd11" 
											data-date-fmt="yyyy-MM-dd" onFocus="WdatePicker({minDate:'#F{$dp.$D(\'recpEndDate\')}'})" />
                                    </td>
                                    <td>&nbsp;-&nbsp;</td>
                                    <td style="width:50%">
                                        <input id="recpEndDate" name="recpEndDate" type="text" class="textinput"  placeholder="yyyy-MM-dd" 
                                        data-date-fmt="yyyy-MM-dd" onFocus="WdatePicker({minDate:'#F{$dp.$D(\'recpStartDate\')}'})" />
                                    </td>
                                </tr>
                            </table>
                    </div>
                	
                   <div class="textalign" >
					<button type="button" onclick="gridSerch();" class="btn btn-success btn-sm" id="selectDicCompType"><spring:message code="message.button.seachSpacing"/></button>
                </div>
                </div>
                 </form>
            </div>
        </div>

        <table class="jqgrid" id="gridlist"></table>
        <div id="gridpage"></div>
         <div class=" box box-warning bottongroup">
        <a href="toReviewsList.html" class="btn btn-default btn-sm"><spring:message code="message.button.getBackSpacing"/></a>
        </div> 
    </section>
    <%@ include file="/WEB-INF/component/commonJS.jsp"%>
    <script type="text/javascript">
        $(function () {
            var postJson = formatForm("form");
            $("#gridlist").jqGrid({
            	url: "${ctx}/purOrderInfo/getReviewsDataListDetail.html",
                mtype: "POST",
                datatype: "json",
                postData: postJson,
                autowidth: true,
                //shrinkToFit: false,
                height: 270,
                colNames: [ 
                           '<spring:message code="message.listForm.DingDanBaoHao"/>',
                           '<spring:message code="message.listForm.SuiHuoDanHao"/>',
                           '<spring:message code="message.model.peiSongQiYe"/>',
                           '<spring:message code="message.listForm.PingFen"/>',
                           '<spring:message code="message.listForm.PingFenBeiZhu"/>',
                           '<spring:message code="message.listForm.PingFenShiJian"/>',
                           '<spring:message code="message.listForm.DingDanKaiShiShiJian"/>',
                           '<spring:message code="message.listForm.DingDanQueRenShiJian"/>',
                           '<spring:message code="message.listForm.DingDanChuKuShiJian"/>',
                           '<spring:message code="message.listForm.DingDanDaoDaShiJian"/>', 
                           '<spring:message code="message.listForm.yaoPinBianMa"/>',
 	                       '<spring:message code="message.listForm.tongYongMing"/>', 
 	                       '<spring:message code="message.listForm.jiXing"/>',
 	                       '<spring:message code="message.listForm.guiGe"/>',
 	                       '<spring:message code="message.listForm.zhuanHuanXiShu"/>',
 	                       '<spring:message code="message.listForm.baoZhuangDanWei"/>', 
 	                       '<spring:message code="message.listForm.caiZhi"/>',
 	                       '<spring:message code="message.listForm.shengChanQiYe"/>'
                            ],
                colModel: [
					{ name: 'interflowId', width: 150,hidden:true , align:"center" ,sortable: false},
					{ name: 'withOrderId', width: 150,hidden:true , align:"center" ,sortable: false},
					{ name: 'delCompName', width: 150 ,hidden:true, align:"center" ,sortable: false,
						 formatter:function(cellvalue, options,row) {
							 return "<a href=\"javascript:$.HN.dialog.opendialog('"+row.delCompId+"','"+cellvalue+"','${ctx}/stdCompinfo/toStdCompinfoDetail.html?compId="+row.delCompId+"','800px','400px',function operResult(val){return operResult;})\">"+cellvalue+"</a>";
			     		}},
					{ name: 'gradeScore', width: 150 ,hidden:true, align:"center" ,sortable: false},
					{ name: 'gradeRemark', width: 150,hidden:true , align:"center" ,sortable: false},
					{ name: 'gradeDatetime', width: 150,hidden:true , align:"center" ,sortable: false},
					{ name: 'orderBegTime', width: 150,hidden:true , align:"center" ,sortable: false},
					{ name: 'submitDatetime', width: 150,hidden:true , align:"center" ,sortable: false},
					{ name: 'delDatetime', width: 150 ,hidden:true, align:"center" ,sortable: false},
					{ name: 'recpDatetime', width: 150,hidden:true , align:"center" ,sortable: false}, 
					{ name: 'drugCode', width: 120, align: "center",sortable:false,
						formatter:function(cellvalue, options, row) {
							return "<a href=\"javascript:$.HN.dialog.opendialog('"+row.drugId+"','<spring:message code="message.lable.proddruginfoSTDdetail"/>','${ctx}/stdDrug/drugInfoDetail.html?drugId="+row.drugId+"','800px','400px',function operResult(val){return operResult;})\">"+cellvalue+"</a>"
                    	}},
	                { name: 'drugName', width: 120, align: "center" ,sortable:false },
	                { name: 'formName',  width: 80 , align: "center",sortable:false},
	                { name: 'specName',  width: 80, align: "center" ,sortable:false},
	                { name: 'factor',  width: 80, align: "center" ,sortable:false},
	                { name: 'unit',  width: 60, align: "center" ,sortable:false},
	                { name: 'materialName',  width: 60, align: "center" ,sortable:false},
	                { name: 'compName',  width: 180, align: "center",sortable:false,
						 formatter:function(cellvalue, options,row) {
							 return "<a href=\"javascript:$.HN.dialog.opendialog('"+row.compId+"','"+cellvalue+"','${ctx}/stdCompinfo/toStdCompinfoDetail.html?compId="+row.compId+"','800px','400px',function operResult(val){return operResult;})\">"+cellvalue+"</a>";
			     		} }
                ],
                rowNum: 20,
                rowList: [10, 20, 50, 100],
                rownumbers: true,
                pager: "#gridpage",
                //multiselect: true, 
                viewrecords: true,
                gridComplete: function(){
                  	 //序号列宽度自适应（参数为jqgridID）
                         autoRNWidth("gridlist");
                     	//数据只有一条时默认选中（参数为jqgridID）
                         selectByOneData("gridlist");
                   },
                caption: "<spring:message code="message.list.DaiShouHuoYiPinJiaDingDanDetailLieBiao"/>",
                jsonReader: {
                    repeatitems: false,
                    id: "ids"
                }
            });
            $("#gridlist").jqGrid('navGrid', '#gridpage', { add: false, edit: false, del: false, search: false, refresh: false });
            $(window).trigger("resize");
        });
        
        
        
        
        
        //查询
        function gridSerch() {
        	var interflowId = $.trim($("#interflowId").val());
        	var delCompName = $.trim($("#delCompName").val());
    		$("#gridlist").jqGrid('setGridParam',{  
    	        datatype:'json',
    	        postData:{
    	        	    "interflowId":interflowId,
    	        		"delCompName":delCompName},
    	        		page:1
    	    }).trigger("reloadGrid"); //重新载入  
    	}
        
    </script>
</body>
</html>